
package DesignPattern.abstractFactory;

/**
 * 抽象工厂测试类
 *  2013-12-3
 **/
public class AbstractFactoryTest {

	public static void main(String[] args) {
		AbstractFactory factory=new FactoryA();
		AbstractGoods goods =factory.getGoodsA();
		goods.showInfo();
		goods =factory.getGoodsB();
		goods.showInfo();
	}
}
